package cn.cloud9.designpattern.dp07decorator.origin;

import java.math.BigDecimal;

/**
 * @projectName: Java
 * @author: 戴知舟
 * @date: 2022年05月24日 10:54
 * @version: 1.0
 */
public class PancakeWithFriedEggsAndSausage extends PancakeWithFriedEggs {

    @Override
    protected String getMessage() {
        return super.getMessage() + "，附加香肠";
    }

    @Override
    protected BigDecimal getPrice() {
        return super.getPrice().add(new BigDecimal(2D));
    }
}
